package com.fr.data;

import com.fr.base.core.json.JSONArray;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class DBFeedback
  implements Serializable, Cloneable
{
  private List feedbackList = new ArrayList();

  public void addFeedback(Map paramMap)
  {
    this.feedbackList.add(paramMap);
  }

  public int getFeedbackCount()
  {
    return this.feedbackList.size();
  }

  public Map getFeedback(int paramInt)
  {
    return ((Map)this.feedbackList.get(paramInt));
  }

  public JSONArray toJSON()
  {
    JSONArray localJSONArray = new JSONArray();
    int i = 0;
    int j = getFeedbackCount();
    while (i < j)
    {
      localJSONArray.put(getFeedback(i));
      ++i;
    }
    return localJSONArray;
  }
}